/**
 * 文件描述如下：
 * 1. 参数配置parameterConfiguration的路由设置
 * 2.
 * 3.
 * 4.
 */

const childRoutes = [
  'equipmentsystem', // 系统设备
  'devicedriver', // 设备驱动
  'operation', // 运维监控
  'transportation', // 交通和流量
  'v2xcomponent', // v2类组件
  'perceptioncomponent', // 感知组件
  'deepstream', // Deepstream
]

export default [
  {
    path: '/parameterConfiguration',
    name: 'parameterConfiguration', // 参数配置
    component: () => import('../views/ParameterConfiguration/ParameterConfiguration.vue'),
    children: childRoutes.map((route) => ({
      path: route,
      name: route,
      component: () => import(`../views/ParameterConfiguration/views/${route.charAt(0).toUpperCase() + route.slice(1)}.vue`),
    })),
  },
]
